using System;

using Gtk;
using Wnck;

namespace Dashboard.Sidebar
{
	public class Applet : _Gnome.PanelApplet
	{
		public Applet (IntPtr raw) : base (raw) 
		{
			
		}
		
		public override string IID 
		{
			get { return "OAFIID:DashboardApplet"; }
		}
		
		public override string FactoryIID
		{
			get { return "OAFIID:DashboardApplet_Factory"; }
		}
		
		public override void Creation ()
		{
			Sidebar sidebar = new Sidebar ();

			// FIXME: Dynamic sizing - we want to fill the
			// entire height and width of the panel we're 
			// sitting in.
			
			int height = Screen.Default.Height;
			sidebar.SetSizeRequest (250, height - 30);

			Add (sidebar);
			ShowAll ();
		}
	}
}
